//
//  RMMShopingModel.m
//  Romomo
//
//  Created by puman on 16/10/10.
//  Copyright © 2016年 mazegong. All rights reserved.
//

#import "RMMShopingModel.h"

@implementation RMMShopingModel
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"PROD_SERVICE_TYPE"]) {
        self.PROD_SERVICE_TYPE = [NSString stringWithFormat:@"%@",value];
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"NAME"]) {
        self.SERVICE_NAME = value;
        self.BOM_NAME = value;
    }
    if ([key isEqualToString:@"PRICE"]) {
        self.PRICE = [NSString stringWithFormat:@"%@",value];
    }
    if ([key isEqualToString:@"SERVICE_PRICE"]) {
        self.PRICE = [NSString stringWithFormat:@"%@",value];
    }
    self.COUNT = @1 ;
}
@end
